﻿using System;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace RedSand.Site.Models
{
    public class ProductInfo
    {
        [Key]
        [HiddenInput(DisplayValue = false)]
        public int ProductID { get; set; }

        [Display(Name = "Name")]
        [Required]
        public string Name { get; set; }

        [Display(Name = "Description")]
        public string Description { get; set; }

        [Display(Name = "Image")]
        public string Image { get; set; }

        [Display(Name = "OtherImages")]
        public string OtherImages { get; set; }

        [Display(Name = "IsHot")]
        public bool? IsHot { get; set; }

        [Display(Name = "Views")]
        public int? Views { get; set; }

        [Display(Name = "Type")]
        public byte? Type { get; set; }

        [Display(Name = "Status")]
        public byte? Status { get; set; }
    }
    public class ProductSearchModel
    {
        public string KeyWord { get; set; }
        public byte? Status { get; set; }
        public bool? IsHot { get; set; }
        public byte? Type { get; set; }
    }
}
